package SnP;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
import java.net.Inet4Address;

import javax.net.ssl.SSLServerSocket;
import javax.net.ssl.SSLServerSocketFactory;

public class Programmer {

	private static SSLSocket clientSocket;
	private static SSLServerSocket serverSocket;
	
	public static void Programmer() {
		try {
			SSLSocketFactory sslsocketfactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
			clientSocket = (SSLSocket) sslsocketfactory.createSocket("localhost", 9999);
		}
		catch (Exception exception) {
			System.out.println("Error creating client socket");
			exception.printStackTrace();
		}
        
		try {
			SSLServerSocketFactory sslserversocketfactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
            serverSocket = (SSLServerSocket) sslserversocketfactory.createServerSocket(9998);
		}
		catch (Exception exception) {
			System.out.println("Error creating server socket");
			exception.printStackTrace();
		}
	}
	
	public static void sendMessage(Inet4Address toAddr, File file) {
		FileOutputStream fouts = null;
		
	}
}
